<template>
<div>
  <div class="footer_wrap">
    <!-- 占位符 -->
    <router-link to="/find">发现音乐</router-link>
    <router-link to="/my">我的音乐</router-link>
    <!-- 问号传参 -->
    <!-- /path?参数名=值 -->
    <!-- 动态路径传参 -->
    <!-- path:"/path/:参数名" -->
    <router-link to="/parte?name=鲤鱼&&age=11">朋友query</router-link>
    <router-link to="/parte/鲤鱼/11">朋友params</router-link>
  </div>
  <div class="top">
    <router-view></router-view>
  </div>
</div>
</template>

<script>
export default {
  name: "VueRouteApp",

  data() {
    return {};
  },

  mounted() {},

  methods: {},
};
</script>

<style scoped>
.footer_wrap {
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  width: 100%;
  text-align: center;
  background-color: #333;
  color: #ccc;
}
.footer_wrap a {
  flex: 1;
  text-decoration: none;
  padding: 20px 0;
  line-height: 20px;
  background-color: #333;
  color: #ccc;
  border: 1px solid black;
}
.footer_wrap a:hover {
  background-color: #555;
}
.top {
  padding-top: 62px;
}
.footer_wrap a.router-link-active{
  background-color: rgb(95, 38, 128);
}
</style>